type encoding/json/v2.addressableValue
92 uses
encoding/json/v2 (current package)
arshal.go#L240: va := addressableValue{v.Elem(), forceAddr} // dereferenced pointer is always addressable
arshal.go#L451: va := addressableValue{v.Elem(), false} // dereferenced pointer is always addressable
arshal.go#L493: type addressableValue struct {
arshal.go#L503: func newAddressableValue(t reflect.Type) addressableValue {
arshal.go#L504: return addressableValue{reflect.New(t).Elem(), true}
arshal.go#L516: marshaler = func(*jsontext.Encoder, addressableValue, *jsonopts.Struct) error
arshal.go#L517: unmarshaler = func(*jsontext.Decoder, addressableValue, *jsonopts.Struct) error
arshal_default.go#L128: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L160: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L213: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L257: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L335: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L378: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L470: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L492: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L569: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L591: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L659: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L698: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L797: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L909: key addressableValue
arshal_default.go#L910: val addressableValue
arshal_default.go#L917: k := addressableValue{keys.Index(i), true} // indexed slice element is always addressable
arshal_default.go#L919: v := addressableValue{vals.Index(i), true} // indexed slice element is always addressable
arshal_default.go#L958: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1122: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1147: v := addressableValue{va.Field(f.index0), va.forcedAddr} // addressable if struct value is addressable
arshal_default.go#L1288: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1390: v := addressableValue{va.Field(f.index0), va.forcedAddr} // addressable if struct value is addressable
arshal_default.go#L1399: unmarshal = func(dec *jsontext.Decoder, _ addressableValue, _ *jsonopts.Struct) error {
arshal_default.go#L1424: func (va addressableValue) fieldByIndex(index []int, mayAlloc bool) addressableValue {
arshal_default.go#L1430: va = addressableValue{va.Field(i), va.forcedAddr} // addressable if struct value is addressable
arshal_default.go#L1435: func (va addressableValue) indirect(mayAlloc bool) addressableValue {
arshal_default.go#L1439: return addressableValue{}
arshal_default.go#L1443: va = addressableValue{va.Elem(), false} // dereferenced pointer is always addressable
arshal_default.go#L1449: func isLegacyEmpty(v addressableValue) bool {
arshal_default.go#L1477: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1530: v := addressableValue{va.Index(i), false} // indexed slice element is always addressable
arshal_default.go#L1541: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1584: v := addressableValue{va.Index(i), false} // indexed slice element is always addressable
arshal_default.go#L1625: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1643: v := addressableValue{va.Index(i), va.forcedAddr} // indexed array element is addressable if array is addressable
arshal_default.go#L1653: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1689: v := addressableValue{va.Index(i), va.forcedAddr} // indexed array element is addressable if array is addressable
arshal_default.go#L1727: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1752: v := addressableValue{va.Elem(), false} // dereferenced pointer is always addressable
arshal_default.go#L1755: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1778: v := addressableValue{va.Elem(), false} // dereferenced pointer is always addressable
arshal_default.go#L1811: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1860: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_default.go#L1900: var v addressableValue
arshal_default.go#L1930: v = addressableValue{reflect.ValueOf(internal.NewRawNumber()).Elem(), true}
arshal_default.go#L1975: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_default.go#L1978: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_embedded.go#L40: func marshalEmbeddedFallbackAll(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct, f *structField, insertUnquotedName func([]byte) bool) error {
arshal_embedded.go#L41: v := addressableValue{va.Field(f.index0), va.forcedAddr} // addressable if struct value is addressable
arshal_embedded.go#L115: marshalKey := func(mk addressableValue) error {
arshal_embedded.go#L169: func unmarshalEmbeddedFallbackNext(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct, f *structField, quotedName, unquotedName []byte) error {
arshal_embedded.go#L170: v := addressableValue{va.Field(f.index0), va.forcedAddr} // addressable if struct value is addressable
arshal_funcs.go#L94: fnc func(*Coder, addressableValue, *jsonopts.Struct) error
arshal_funcs.go#L114: func (a *typedArshalers[Coder]) lookup(fnc func(*Coder, addressableValue, *jsonopts.Struct) error, t reflect.Type) (func(*Coder, addressableValue, *jsonopts.Struct) error, bool) {
arshal_funcs.go#L122: return v.(func(*Coder, addressableValue, *jsonopts.Struct) error), true
arshal_funcs.go#L127: var fncs []func(*Coder, addressableValue, *jsonopts.Struct) error
arshal_funcs.go#L145: fnc = func(c *Coder, v addressableValue, o *jsonopts.Struct) error {
arshal_funcs.go#L156: return v.(func(*Coder, addressableValue, *jsonopts.Struct) error), true
arshal_funcs.go#L173: fnc: func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_funcs.go#L214: fnc: func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_funcs.go#L260: fnc: func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_funcs.go#L295: fnc: func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_funcs.go#L401: func (va addressableValue) castTo(to reflect.Type) reflect.Value {
arshal_methods.go#L179: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_methods.go#L207: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) (err error) {
arshal_methods.go#L232: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_methods.go#L264: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_methods.go#L301: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L336: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_methods.go#L362: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_time.go#L46: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) error {
arshal_time.go#L78: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) error {
arshal_time.go#L136: fncs.marshal = func(enc *jsontext.Encoder, va addressableValue, mo *jsonopts.Struct) (err error) {
arshal_time.go#L161: fncs.unmarshal = func(dec *jsontext.Decoder, va addressableValue, uo *jsonopts.Struct) (err error) {
fields.go#L73: isZero func(addressableValue) bool
fields.go#L74: isEmpty func(addressableValue) bool
fields.go#L222: f.isZero = func(va addressableValue) bool {
fields.go#L228: f.isZero = func(va addressableValue) bool {
fields.go#L233: f.isZero = func(va addressableValue) bool { return va.Interface().(isZeroer).IsZero() }
fields.go#L235: f.isZero = func(va addressableValue) bool { return va.Addr().Interface().(isZeroer).IsZero() }
fields.go#L242: f.isEmpty = func(va addressableValue) bool { return va.Len() == 0 }
fields.go#L244: f.isEmpty = func(va addressableValue) bool { return va.IsNil() }